﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Himp.DataHub
{
    public class PagedAndSortedResultRequestDtoExtend
    {
        /// <summary>
        /// 
        /// </summary>
        public int Pi { get; set; } = 1;

        /// <summary>
        /// 
        /// </summary>
        [Range(1, int.MaxValue)]
        public int Ps { get; set; } = DefaultMaxResultCount;

        /// <summary>
        /// 
        /// </summary>
        public string? Filter { get; set; }

        //
        // 摘要:
        //     Default value: 10.
        public static int DefaultMaxResultCount { get; set; } = 10;


        //
        // 摘要:
        //     Maximum possible value of the Volo.Abp.Application.Dtos.LimitedResultRequestDto.MaxResultCount.
        //     Default value: 1,000.
        public static int MaxMaxResultCount { get; set; } = 1000;
    }
}
